Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: V4 create behind feature flag [1/n] #4444

Merged
merged 4 commits into from
Aug 30, 2024
Merged

Conversation

johnnyd-eth
Copy link
Contributor

@johnnyd-eth johnnyd-eth commented Aug 29, 2024

@johnnyd-eth johnnyd-eth force-pushed the v4-edit-cycle-review-3 branch from e629a1a to 239552a Compare August 29, 2024 01:45
Copy link
Contributor Author

@johnnyd-eth johnnyd-eth Aug 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Main diff here

const [loading, setLoading] = useState(true)

useEffect(() => {
if (!router.isReady || !contracts.primaryNativeTerminal.data) return
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Terminal address loaded for network given here: https://github.com/jbx-protocol/juice-interface/pull/4444/files#r1735468140

@johnnyd-eth johnnyd-eth requested a review from aeolianeth August 29, 2024 02:00
<WagmiProvider config={wagmiConfig}>
{/* Hardcode V4 create to Sepoila for now */}
<JBProjectProvider
chainId={NETWORKS_BY_NAME[NetworkName.sepolia].chainId as 11155111}
Copy link
Contributor Author

@johnnyd-eth johnnyd-eth Aug 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sets the network for useJBContractContext to use. Ideally we would read from process.env.NEXT_PUBLIC_INFURA_NETWORK, but I think this will require us to first update jbDirectoryAddress in the SDK to include mainnet (chainId=1):

Screenshot 2024-08-29 at 10 18 59 am

@johnnyd-eth johnnyd-eth changed the title V4 create behind feature flag feat: V4 create behind feature flag [1/n] Aug 29, 2024
@johnnyd-eth johnnyd-eth merged commit bd533f0 into dev Aug 30, 2024
4 checks passed
@johnnyd-eth johnnyd-eth deleted the v4-edit-cycle-review-3 branch August 30, 2024 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant